<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" rel="stylesheet">
    form {
    margin: 0;
    }
    .editor {
    margin-top: 5px;
    margin-bottom: 5px;
    }
    .ke-content {
    font-family: Courier New;
    font-size: 12px;
    background-color: #ffffff;
}

  </style>
  <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'test_description',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
  </script>
<script language=javascript>
function onlyNum()
{
if(!((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105)))
//考虑小键盘上的数字键
event.returnvalue=false;
}
</script>
<p style="margin: 5px 0pt;"><%=link_to  '测试管理' , :controller=>"surveys" ,:action=>"index"%> >>
<%=link_to '倾向测试管理' ,:controller=>"t_tests_manage" , :action=>"index"%> >>
<%=link_to  '创建倾向测试' , :controller=>"t_tests_manage" ,:action=>"new"%>  </p><br  />
<% form_for(@test, :url => { :action => "create" } ,:html=>{ :class=>"required-validate"}) do |f| %>

  <p>
    <%= f.label "测试名称" %>
    <input type="text" class="required " name="test[name]"/><%=error_message_on :test , :name%><br />
  </p>
  <p>
    <%= f.label "测试说明" %><br />
    <!--%= f.text_area :description, :cols => 50, :rows => 5 %-->
    <textarea id="test_description" name="test[description]" style="width:500px;height:200px;visibility:hidden;"></textarea>
  </p>
 <%=error_message_on :test ,:description%>
  <br/>
  
  <fieldset>
     <legend>倾向符合程度程度</legend><br/>
    1: <input name="choice[][content]" type="text" class="required"/>&nbsp;&nbsp;&nbsp;
    分数：<input name="choice[][value]" type="text" size="10" class="required validate-integer"/> <br />
    2: <input name="choice[][content]" type="text" class="required"/>&nbsp;&nbsp;&nbsp;
    分数：<input name="choice[][value]" type="text" size="10" class="required validate-integer"/> <br />
    3: <input name="choice[][content]" type="text" class="required"/>&nbsp;&nbsp;&nbsp;
    分数：<input name="choice[][value]" type="text" size="10" class="required validate-integer"/> <br />
    4: <input name="choice[][content]" type="text" class="required"/>&nbsp;&nbsp;&nbsp;
    分数：<input name="choice[][value]" type="text" size="10" class="required validate-integer"/> <br />
    5: <input name="choice[][content]" type="text"  class="required"/>&nbsp;&nbsp;&nbsp;
    分数：<input name="choice[][value]" type="text" size="10" class="required validate-integer"/> <br />
  </fieldset>  
  
  <p>
    <%= f.submit "保存" %>
  </p>
<% end %>
